package com.source.thread.threadd;

import java.util.Date;

public class Pear {

    private  Integer id;
    private String name;
    private Date  date;
    private Date  date2;

    public Date getDate2() {
        return date2;
    }

    public void setDate2(Date date2) {
        this.date2 = date2;
    }

    Pear(){super();}
    public Integer getId() {
        return id;
    }


    @Override
    public String toString() {
        return "Pear{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                ", date2=" + date2 +
                '}';
    }

    public Pear(Integer id, String name, Date date) {
        this.id = id;
        this.name = name;
        this.date = date;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
